import { NgModule } from '@angular/core';
import { HomeComponent } from './home.component';
import { RouterModule } from '@angular/router'
import { ResourceModule } from './resource/resource.module';
import { CommonServiceModule } from '../common/common.service.module';
import { WarnModule } from './warn/warn.module';
import { WorkFlowModule } from './workflow/workflow.module';
@NgModule({
    imports: [
        CommonServiceModule,
        RouterModule.forChild([
            {
                path: 'home',
                component: HomeComponent,
                children: [
                    {
                        path: 'resource',
                        loadChildren: './resource/resource.module#ResourceModule',
                    },
                    {
                        path: 'warn',
                        loadChildren: './warn/warn.module#WarnModule',
                    },
                    {
                        path: 'workflow',
                        loadChildren: './workflow/workflow.module#WorkFlowModule',
                    }
                ]
            },
            {
                path: '',
                redirectTo: '/home/warn/warnning/processed', pathMatch: 'full'

            },
        ])
    ],
    providers: [

    ],
    declarations: [
        HomeComponent
    ],
    exports: [
        HomeComponent
    ],
})
export class HomeModule { }